﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/SIM.Master"
    Theme="SIM" CodeBehind="frmAvanceLabor.aspx.cs" Inherits="SIM.Geo.UI.Geo.frmAvanceLabor" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <script type="text/javascript">

    </script>
    <asp:UpdatePanel runat="server" ID="upBandeja" EnableViewState="true" UpdateMode="Conditional">
        <ContentTemplate>
            <div>
                <table style="width: 100%;" border="0">
                    <tbody>
                        <tr>
                            <td>
                                <div class="optiongroup">
                                    <div class="navigator-icon">
                                    </div>
                                    <span class="navigator-item">Geología</span>
                                    <div class="separador-op">
                                    </div>
                                    <span class="navigator-item"><a class="navigator-item" href="#">Topografia</a></span>
                                    <span class="active-op">Avance Labor</span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style="width: 100%" id="FiltroTabla">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <table>
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <telerik:RadNumericTextBox ID="txtAnio" runat="server" Width="60px" DataType="System.Int16"
                                                                    MaxLength="4" MaxValue="2030" MinValue="1980" ShowSpinButtons="false">
                                                                    <NegativeStyle Resize="None" />
                                                                    <NumberFormat DecimalDigits="0" ZeroPattern="n" GroupSeparator="" />
                                                                    <EmptyMessageStyle Resize="None" />
                                                                    <ReadOnlyStyle Resize="None" />
                                                                    <FocusedStyle Resize="None" />
                                                                    <DisabledStyle Resize="None" />
                                                                    <InvalidStyle Resize="None" />
                                                                    <HoveredStyle Resize="None" />
                                                                    <EnabledStyle Resize="None" />
                                                                </telerik:RadNumericTextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtAnio"
                                                                    ErrorMessage="Año no es válido" ValidationGroup="Busqueda" ForeColor="Red" Display="None" />
                                                                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server"
                                                                    TargetControlID="RequiredFieldValidator3">
                                                                </ajaxToolkit:ValidatorCalloutExtender>
                                                            </td>
                                                            <td>
                                                                Mes
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlMesBuscar" runat="server">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td>
                                                                <asp:ImageButton ID="ibtnBuscar" runat="server" ToolTip="Buscar" ImageUrl="~/Imagen/botones/button_search32.png"
                                                                    OnClick="ibtnBuscar_Click" />
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <%--   <div>
                <asp:ImageButton ID="ibtnExportar" runat="server" ToolTip="Exportar" ImageUrl="~/Imagen/botones/button_excel32.png"
                    OnClick="ibtnExportar_Click" />
            </div>--%>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
            </telerik:RadAjaxLoadingPanel>
            <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                <telerik:RadGrid runat="server" ID="rgLista" AutoGenerateColumns="False" AllowSorting="True"
                    AllowPaging="True" AllowCustomPaging="False" ShowStatusBar="True" PageSize="10"
                    AllowMultiRowSelection="True" AllowFilteringByColumn="true" MasterTableView-NoMasterRecordsText="No se ha registrado información..."
                    OnDeleteCommand="rgLista_DeleteCommand" OnItemCommand="rgLista_ItemCommand" OnPageIndexChanged="rgLista_PageIndexChanged"
                    OnPageSizeChanged="rgLista_PageSizeChanged" OnSortCommand="rgLista_SortCommand"
                    OnItemDataBound="rgLista_ItemDataBound">
                    <MasterTableView DataKeyNames="CodigoAvanceLabor" AllowFilteringByColumn="true">
                        <Columns>
                            <telerik:GridBoundColumn DataField="CodigoAvanceLabor" HeaderText="Código" ForceExtractValue="Always"
                                ConvertEmptyStringToNull="true" AllowFiltering="false" Visible="true" HeaderStyle-Width="120px" />
                            <telerik:GridBoundColumn DataField="Semana" HeaderText="Semana" HeaderStyle-Width="150px"
                                AllowFiltering="false" />
                            <telerik:GridBoundColumn DataField="FechaInicio" HeaderText="Fecha Inicial" DataFormatString="{0:dd/MM/yyyy}"
                                HeaderStyle-Width="150px" AllowFiltering="false" />
                            <telerik:GridBoundColumn DataField="FechaFin" HeaderText="Fecha Final" DataFormatString="{0:dd/MM/yyyy}"
                                HeaderStyle-Width="200px" AllowFiltering="false" />
                            <telerik:GridBoundColumn DataField="AvanceTotal" HeaderText="Avance Total" AllowFiltering="false"
                                HeaderStyle-Width="200px" />
                            <%--       <telerik:GridButtonColumn UniqueName="btnVer" ConfirmTitle="Ver" Text="Ver" ButtonType="ImageButton"
                                    CommandName="Ver" ImageUrl="../Imagen/botones/button_ver16.png" />--%>
                            <telerik:GridButtonColumn UniqueName="btnPrint" ButtonType="ImageButton" ImageUrl="../Imagen/botones/button_print16.png"
                                CommandName="Imprimir" ConfirmTitle="Imprimir" Text="Imprimir" />
                            <telerik:GridButtonColumn UniqueName="btnEditar" ConfirmTitle="Modificar" Text="Modificar"
                                ButtonType="ImageButton" CommandName="Editar" ImageUrl="../Imagen/botones/button_edit16.png" />
                            <telerik:GridButtonColumn UniqueName="btnEliminar" ConfirmText="Está seguro de eliminar?"
                                ConfirmDialogType="RadWindow" ConfirmTitle="Confirmar" ButtonType="ImageButton"
                                Text="Eliminar" CommandName="Delete" ImageUrl="../Imagen/botones/button_delete16.png" />
                        </Columns>
                        <EditFormSettings>
                            <EditColumn ButtonType="ImageButton" />
                        </EditFormSettings>
                        <PagerStyle PageSizeControlType="RadComboBox" />
                    </MasterTableView>
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <PagerStyle PageSizeControlType="RadComboBox" Mode="NextPrevAndNumeric" />
                    <ClientSettings EnableRowHoverStyle="true">
                        <ClientEvents OnRowDblClick="rowDblClick" />
                        <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" FrozenColumnsCount="2"
                            ScrollHeight="170px" />
                    </ClientSettings>
                </telerik:RadGrid>
                <br />
                <asp:Panel ID="pnlMensaje" runat="server" class="alert alert-success" Visible="false">
                    <strong>¡Atención!</strong>
                    <asp:Label ID="lblMensaje" runat="server" Text=""></asp:Label>
                </asp:Panel>
            </telerik:RadAjaxPanel>
            <div>
                <table>
                    <tbody>
                        <tr>
                            <td>
                                <asp:ImageButton ID="ibtnRegistrar" runat="server" ToolTip="Agregar" ValidationGroup="Busqueda"
                                    ImageUrl="~/Imagen/botones/button_add32.png" OnClick="ibtnRegistrar_Click" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </ContentTemplate>
        <Triggers>
            <%--   <ajax:PostBackTrigger ControlID="ibtnExportar" />
<asp:PostBackTrigger ControlID="ibtnExportar"></asp:PostBackTrigger>--%>
        </Triggers>
    </asp:UpdatePanel>
    <!--vista popup-->
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true"
        CssClass="posicion_panel_popup">
    </telerik:RadWindowManager>
</asp:Content>
